/*
 * @Description: 积分提现
 * @Date: 2022-12-09 14:00:11
 * @Author: lizhiqiang
 */
import { IntegralCash } from "@/types/api";
import { get, post } from "@/utils/request";
/**
 * 获取积分提现列表
 */
export const GetIntegralCashList = ( params: IntegralCash ) => {
    return post( "/integral-service/integral/integralwithdrawal/list", params )
}
/**
 * 获取积分提现详情
 * @param pkAccountDc 
 * @returns 
 */
export const GetIntegralCash = ( pkAccountDc: string ) => {
    return get( `/integral-service/integral/integralwithdrawal/info/${ pkAccountDc }` )
}
/**
 * 保存积分提现
 * @param params 
 * @returns 
 */
export const SaveIntegralCash = ( params: IntegralCash ) => {
    return post( "/integral-service/integral/integralwithdrawal/save", params )
}
/**
 * 修改积分提现
 * @param params 
 * @returns 
 */
export const UpdateIntegralCash = ( params: IntegralCash ) => {
    return post( "/integral-service/integral/integralwithdrawal/update", params )
}
/**
 * 删除积分提现记录
 * @param params 
 * @returns 
 */
export const DeleteIntegralCash = ( params: Array<string> ) => {
    return post( "/integral-service/integral/integralwithdrawal/deleteBatch",params)
}